﻿<%@ Control Language="C#" %>
<%@ Register src="../module/Admincenter-Public-Approved.ascx" tagname="Approved" tagprefix="inal" %>
<script runat="server">
    private int Item_Lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        int item_cid = Utils.GetQueryString("Cid", 0);
        Item_Lang = Utils.GetQueryString("lang", 1);
        Videos vidio = new Videos();
        Repeater_List.DataSource = vidio.List(item_cid,0,Item_Lang,"admin");
        Repeater_List.DataBind();
    }
</script>
<table class="datas">
<thead>
    <td width="80"> </td>
    <td class="w50">Num</td>
    <td class="w100"></td>
    <td><%=Lang.Show("Title")%></td>
    <td><%=Lang.Show("Columns")%></td>
    <td><%=Lang.Show("Order")%></td>
    <td><%=Lang.Show("Published")%></td>
    <td><%=Lang.Show("Create_Time")%></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
</thead>
<tbody>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Item_Id") %>">
        <td><inal:Approved runat="server" Item_Id='<%#Utils.ToInt(Container.DataItem,"Item_Id") %>' Item_Status='<%#Utils.ToInt(Container.DataItem,"Item_Status") %>' Item_Typ="12" /></td>
        <td><code>.<%#Eval("Item_Id")%>  </code></td>
        <td><img src="/DataFile/VideoLogo/<%#Eval("Create_Time", "{0:yyyyMM}")%>/<%#Eval("Create_Time", "{0:ddHHmmss}")%>_ssss.jpg" /></td>
        <td><%#Eval("Item_Title")%></td>
        <td><%#Eval("Name")%></td>
        <td><code><%#Eval("Orders")%></code></td>
        <td><time><%#Eval("Item_Time", "{0:yyyy/MM/dd<br>HH-mm-ss}")%></time></td>
        <td><time><%#Eval("Create_Time", "{0:yyyy/MM/dd<br>HH-mm-ss}")%></time></td>
        <td><a href="Ploting.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>&obj_typ=12&isreturn=1"><%=Lang.Show("CoverPage")%></a></td>
        <td><a href="../home/Play.aspx?id=<%#Eval("Item_Id") %>&lang=<%#Eval("Lang") %>" target="_blank"><%=Lang.Show("View")%></a></td>
        <td><a href="Videos-AddEdit.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>"><%=Lang.Show("Edit")%></a></td>
        <td><a href="javascript:Del(<%#Eval("Item_Id") %>,12)" class="del"><%=Lang.Show("Del")%></a></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>